package com.car.service.custormer;

import com.car.dao.custormer.CustormerDao;
import com.car.entity.Custormer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: CustormerServiceImpl
 * @Description:
 * @Author 余全盛
 * @Date: 2021/12/3 15:34
 */
@Service
public class CustormerServiceImpl implements CustormerService {
    @Autowired
    private CustormerDao custormerDao;
    @Override
    public Custormer getCustormerById(int custormerId) {
        return custormerDao.selectById(custormerId);
    }

    @Override
    public int regCustormer(Custormer custormer) {
        return custormerDao.insert(custormer);
    }
}
